from django.db import models

# Create your models here.


class Book(models.Model):
    title = models.CharField(verbose_name="书名", max_length=30, unique=True)
    desc = models.CharField(verbose_name="简介", max_length=500)

    def __str__(self):
        return self.title

    class Meta:
        verbose_name = "书籍"
        verbose_name_plural = "书籍"
